package tw.cuttle;

import java.util.HashMap;
import java.util.Map;
import tw.cuttle.bean.Process;
import tw.cuttle.view.jsp.JspCacheManager;

public class ProcessContext {
    private Map<Process, Long> processCachedTimes=new HashMap<Process, Long>();
    private JspCacheManager jspCacheManager=new JspCacheManager();
    /**
     * @return the jspCacheManager
     */
    public JspCacheManager getJspCacheManager() {
        return jspCacheManager;
    }
    /**
     * @param jspCacheManager the jspCacheManager to set
     */
    public void setJspCacheManager(JspCacheManager jspCacheManager) {
        this.jspCacheManager = jspCacheManager;
    }
    public void addProcessCachedTime(Process process, Long cachedTime){
	processCachedTimes.put(process,cachedTime);
    }
    public Long getProcessCachedTime(Process process){
	return processCachedTimes.get(process);
    }
    
}
